{% extends 'usercenter-base.html' %}


{% block right %}
<div class="personal_des Releasecont">
    <div class="head">
        <h1>我的收藏</h1>
    </div>
</div>
<div class="personal_des permessage">
    <div class="head">
        <ul class="tab_header messagehead">
            <li {% if type == 2 %} class="active"{% endif %}><a href="?type=2">课程机构</a> </li>
            <li {% if type == 3 %} class="active"{% endif %}><a href="?type=3">授课教师 </a></li>
            <li {% if type == 1 %} class="active"{% endif %}><a href="?type=1">公开课程</a></li>
        </ul>
    </div>
    {% if type == 2 %}
    <div class="messagelist">
        <div class="messages butler_list company company-fav-box">
            {% for items in list  %}
            <dl class="des fr">
                <dt>
                    <a href="{% url 'org:org_home' items.id %}">
                        <img width="160" height="90" src="{{ MEDIA_URL }}{{ items.image }}" />
                    </a>
                </dt>
                <dd>
                    <h1><a href="{% url 'org:org_home' items.id %}">{{ items.name }}</a></h1>
                    <div class="pic fl" style="width:auto;">

                        <img src="/static/images/authentication.png" />


                        <img src="/static/images/gold.png" />

                    </div>
                    <span class="c8 clear">{{ items.city }}</span>
                    <div class="delete jsDeleteFav_org" data-favid="1"></div>
                </dd>
            </dl>                
            {% endfor %}                
        </div>
    </div>
    {% endif %}
    {% if type == 1 %}
    <div class="companycenter">
        <div class="group_list brief">
            {% for items in list  %}
            <div class="module1_5 box">
                <a href="{% url 'course:course_details' items.id %}">
                    <img width="214" height="190" src="{{ MEDIA_URL }}{{ items.cover }}"/>
                </a>
                <div class="des">
                    <a href="{% url 'org:org_teacher' items.id %}"><h2>{{ items.name }}</h2></a>
                    <span class="fl">时长：<i class="key">{{ items.learn_times }}</i></span>
                    <span class="fr">学习人数：{{ items.students }}</span>
                </div>
                <div class="bottom">
                    <span class="fl">{{ items.coures_org.name }}</span>
                    <span class="delete-group fr jsDeleteFav_course" data-favid="12"></span>
                </div>
            </div>
            {% endfor %}                
        </div>
    </div>
    {% endif %}

    {% if type == 3 %}
    <div class="messagelist">
        <div class=" butler_list butler-fav-box">
            {% for items in list  %}
            <dl class="des users">
                    <dt>
                        <a href="{% url 'org:teacher_details' items.id %}">
                            <img width="100" height="100" src="{{ MEDIA_URL }}{{ items.image }}"/>
                        </a>
                    </dt>
                    <dd>
                        <h1>
                            <a href="{% url 'org:teacher_details' items.id %}">{{ items.name }}<span class="key">认证教师</span>
                            </a>
                        </h1>
                        <ul class="cont clearfix">
                            <li class="time">工作年限：<span>{{ items.work_years }}年</span></li>
                            <li class="c7">课程数：<span>{{ items.get_coures_num }}</span></li>
                        </ul>
                        <ul class="cont clearfix">
                            <li class="time">工作公司：<span>{{ items.work_company }}</span></li>
                            <li class="c7">公司职位：<span>{{ items.work_position }}</span></li>
                        </ul>
                    </dd>
                    <div class="delete jsDeleteFav_teacher" data-favid="1"></div>
                </dl>              
            {% endfor %}
        </div>
    </div>    
    {% endif %}
</div>
{% endblock right %}
